@extends('layouts.main')

@section('content')

<div style="text-align: left;">
        @if(request('k'))
        <bR>
            <div style="font-size:25px;">您所搜索的关键字为:<font style="color:#f69;">{{request('k')}}</font> </div>
            <br><br>
        @endif

        @if($category)
        <br>
        <div style="font-size:25px;"> 当前分类:<font style="color:#f69;">{{$category->name ?? ''}}</font></div>
        <bR><bR>
        @endif
    
    </div>
        @foreach($goods as $item)

        <div class="col-sm-3" style="text-align:center;">
        <ul class="thumbnails">
	<li class="span3" >
    	<div class="thumbnail">
        <a href="{{route('goods.show',['id'=>$item->goods_id])}}" target="_blank" class="thumbnail"><img src="{{$item->pic ?? ''}}"></a>
        	<h3 style="font-size:12px"><a href="{{route('goods.show',['id'=>$item->goods_id])}}" target="_blank">{{$item->name ?? ''}}</a></h3>
            
            <span class="btn btn-success">￥ {{$item->price ?? ''}} </span>
        </div>
    </li>
</ul>
</div>
        @endforeach

    <div class="cf"></div>
    

@endsection
